﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BO;
using DAL;

namespace BLL
{
    public class AutomovelBLL
    {
        public int Inserir(AutomovelBO automovel)
        {         
            AutomovelDAL automovelDAL = new AutomovelDAL();
            return automovelDAL.Inserir(automovel);
        }
        public int Excluir(AutomovelBO automovel)
        {
            AutomovelDAL automovelDAL = new AutomovelDAL();
            return automovelDAL.Excluir(automovel);
        }
        public int Atualizar(AutomovelBO automovel)
        {            
            AutomovelDAL automovelDAL = new AutomovelDAL();            
            return automovelDAL.Atualizar(automovel);
        }
        public AutomovelBO Consultar(AutomovelBO automovel)
        {
            AutomovelDAL automovelDAL = new AutomovelDAL();
            return automovelDAL.Consultar(automovel);
        }
    }
}
